<%@ include file="/common/taglibs.jsp"%>
<%@ page language="java" errorPage="/error.jsp" pageEncoding="UTF-8"
	contentType="text/html;charset=utf-8"%>

<title><fmt:message key="orderDetail.title" /></title>
<content tag="heading">
<fmt:message key="orderDetail.heading" />
</content>
<table>
	<tr>
		<td height="25" bgcolor="#5F9CD4" class="font01">
			&nbsp;&nbsp;&nbsp;系统&gt;&gt; 用户权限&gt;&gt;用户信息
		</td>

	</tr>

</table>

<html:form action="saveOrder" method="post" styleId="orderForm"
	onsubmit="return validateOrderForm(this)">
	<table width="99%" border="0" align="center" cellpadding="1"
		cellspacing="1" bgcolor="#CDCDCD">

		<tr>
			<td>
				<html:hidden property="orderId" />
				<carsite:label styleClass="desc" key="orderForm.inPerson" />
				<html:errors property="inPerson" />
				<html:text property="inPerson" styleId="inPerson"
					styleClass="text medium" />

			</td>
			<td>
				<carsite:label styleClass="desc" key="orderForm.outPerson" />
				<html:errors property="outPerson" />
				<html:text property="outPerson" styleId="outPerson"
					styleClass="text medium" />

			</td>
		</tr>
		<tr>
			<td>
				<carsite:label styleClass="desc" key="orderForm.tranPerson" />
				<html:errors property="tranPerson" />
				<html:text property="tranPerson" styleId="tranPerson"
					styleClass="text medium" />
			</td>

			<td>
				单据种类
				<select name=type onblur="javascript:choose();">
					<option value=1>
						出货单
					</option>
					<option value=2>
						收货单
					</option>
				</select>
				<html:hidden property="type" styleId="tranPerson" />

			</td>
		</tr>
		<tr>
			<td>
			</td>

			<td class="buttonBar bottom">
				<html:submit styleClass="button" property="method.save"
					onclick="bCancel=false">
					<fmt:message key="button.save" />
				</html:submit>

				<html:submit styleClass="button" property="method.delete"
					onclick="bCancel=true; return confirmDelete('Order')">
					<fmt:message key="button.delete" />
				</html:submit>

				<html:cancel styleClass="button" onclick="bCancel=true">
					<fmt:message key="button.cancel" />
				</html:cancel>
			</td>
		</tr>
	</table>
</html:form>

<script type="text/javascript">
    Form.focusFirstElement($("orderForm"));
   function choose(){
    var a= document.getElementById("type").value;
    //if(a==1){
  // document.getElementById("").disabled=true;
  // document.getElementById("").disabled=false;
  // }else{
   
  // }
    }
</script>
<%--
<html:javascript formName="orderForm" cdata="false" dynamicJavascript="true" staticJavascript="false"/>
--%>
<script type="text/javascript"
	src="<html:rewrite page="/scripts/validator.jsp"/>"></script>
